home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / zeros < prev   
Text File  |  1994-04-25  |  381b  |  23 lines

  1. zeros:
  2.  
  3. Syntax:    zeros ( nrow, ncol )
  4.     zeros ( A )
  5.  
  6. Description:
  7.  
  8.     Zeros returns a matrix with all zero elements. If the
  9.     arguments are two scalars, then zeros returns a matrix with
  10.     dimensions S1xS2.
  11.  
  12.     If the argument is a MATRIX, then zeros returns a matrix with
  13.     dimensions m[1] by m[2].
  14.  
  15.     Examples:
  16.  
  17.     > zeros( 3 , 3 )
  18.  
  19.     > A = rand(10,4);
  20.     > B = zeros( size(A) )
  21.  
  22. See Also: size
  23.